package com.ruoyi.finance.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/** 水单表：PaymentWaterReceipt，水单明细表： PaymentWaterReceiptVoucher*/
@TableName(value="tb_payment_water_receipt")
public class PaymentWaterReceipt {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id")
    private String id;


    /** 创建人*/
    @TableField("create_by")
    private String createBy;

    /** 创建时间*/
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public PaymentWaterReceipt(String id, String createBy, Date createTime) {
        this.id = id;
        this.createBy = createBy;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "PaymentWaterReceipt{" +
                "id='" + id + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
